$OpenBSD: patch-src_tools_moc_main_cpp,v 1.5 2016/11/07 09:46:29 dcoppa Exp $

Workaround moc's inability to properly parse C++ macros within
some of Boost's headers. This issue may come up again with other
headers from Boost requiring additional entries to be added. The
C++ parser from Qt5's moc has been fixed.

https://bugreports.qt.io/browse/QTBUG-22829

--- src/tools/moc/main.cpp.orig	Thu May  7 16:14:44 2015
+++ src/tools/moc/main.cpp	Sun May 31 14:58:12 2015
@@ -190,6 +190,8 @@ int runMoc(int _argc, char **_argv)
 
     // Workaround a bug while parsing the boost/type_traits/has_operator.hpp header. See QTBUG-22829
     pp.macros["BOOST_TT_HAS_OPERATOR_HPP_INCLUDED"];
+    pp.macros["BOOST_LEXICAL_CAST_INCLUDED"];
+    pp.macros["BOOST_NEXT_PRIOR_HPP_INCLUDED"];
 
     QByteArray filename;
     QByteArray output;
